<template>
    <div class="goodsDesc-container">
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content"></div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            info:{
                title:'小米mi 64G内存 3200像素',
                content:'<p>成本大幅成第三橙诺达橙诺达你cure哈u长春大长大到那无边是返回吧V吃的撒成本大幅成第三橙诺达橙诺达你cure哈u长春大长大<img src="/src/images/phone1.jpg">到那无边是返回吧V吃的撒成本大幅成第三橙诺达橙诺达你cure哈u长春大长大到那无边是返回吧V吃的撒</p>'
            }//图文数据
        }
    },
    created(){
       this.getGoodsDesc();
    },
    methods:{
        getGoodsDesc(){
            this.$http.get('api/goods/getDesc/'+this.$route.params.id).then(result=>{
                if(result.body.status===0){
                    this.info = result.body.message[0];
                }
            })
        }
    }
}
</script>
<style lang="scss">
    .goodsDesc-container{
        
        h3{
            font-size:16px;
            text-align:center;
            color:#22a6ff;
            margin:15px 0;
        }
        .content{
            padding:4px;
            img{
                width:100%;
            }
        }
    }
</style>
